package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.CouponDroolMapper;
import com.shunbo.convenient.service.CouponDroolService;
import com.shunbo.convenient.vo.CouponDrool;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class CouponDroolServiceImpl implements CouponDroolService {

    @Resource
    private CouponDroolMapper couponDroolMapper;

    @Override
    public Integer save(CouponDrool obj) {
        return couponDroolMapper.save(obj);
    }

    @Override
    public Integer update(CouponDrool obj) {
        return couponDroolMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return couponDroolMapper.delete(obj);
    }

    @Override
    public CouponDrool findById(String obj) {
        return couponDroolMapper.findById(obj);
    }

    @Override
    public List<CouponDrool> findAll(CouponDrool obj) {
        return couponDroolMapper.findAll(obj);
    }
}
